"""
 @author adun
 @date 2021/6/14 19:34
"""
#类定义
from typing import Any


class Student():
    #定义基本属性
    name='';
    age=0;
    #定义私有属性
    __address='';

    def __init__(self,n,a,addr) -> None:
       self.name=n;
       self.age=a;
       self.__address=addr;

    def getName(self):
        return self.name

    def setName(self,name):
        self.name=name

    def getAge(self):
        return self.age

    def setAge(self,age):
        self.age=age;

    def getAddr(self):
        return self.__address

    def setAddr(self,attr):
        self.__address=attr

    def __str__(self) -> str:
        return super().__str__()

    def print(self):
        print("[name={0},age={1},_attr={2}]".format(self.name,self.age,self.__address))













